package com.ssy.lingxi.after.sale.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 审核物流枚举
 * @author 伍将
 * @date 2021/1/18
 * @version 2.0.0
 */
public enum VerifyLogisticsEnum {
    /**
     * 拒绝
     */
    REFUSE(0, "拒绝"),
    /**
     * 同意
     */
    AGREE(1, "同意"),
    /**
     * 确认
     */
    CONFIRM(2, "确认");

    private final Integer code;
    private final String message;

    VerifyLogisticsEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getDeclaringClass(), this.getCode());
    }
}
